<!DOCTYPE>
<html>
<head>
<#include "../include/base.ftl">
<title>个人信息 - 设置</title>
<#include "../include/css.ftl">
<link href="/css/space.css" rel="stylesheet" type="text/css">
<script src="/script/jquery-1.7.1.js"></script>
</head>
<body>

<#include "../include/top.ftl">
<div align="center" MAIN>
	<div>


<div TITLE>设置</div>

<div class="setting_tab_div">
	<a href="/setting/info">个人信息</a>
	<a href="/setting/pass">账户安全</a>
</div>

<div align="left" class="setting_context_div">
	<input type="password" class="setting_input" name="thispass" >：当前密码<br>
	<input type="password" class="setting_input" name="newpass" >：新密码<br>
	<input type="password" class="setting_input" name="repass">：确认密码<br>
	<input type="submit" class="setting_btn" value="保存修改" setting="info">
</div>


    </div>
</div>
<#include "../include/footer.ftl">

<script>

$("input[type='submit']").click(function(){
	var thispass = $("input[name='thispass']").val();
	var newpass = $("input[name='newpass']").val();
	var repass = $("input[name='repass']").val();
	
	if(thispass == "" || newpass == "" || repass == ""){
		alert("所有表单必须填写！");
		return ;
	}
	
	var date = {
		thispass:thispass, 
		newpass:newpass, 
		repass:repass };
	
	$.post("/setting/pass", date, function(res){
		alert(res.message);
		$("input[name='thispass']").val('');
		$("input[name='newpass']").val('');
		$("input[name='repass']").val('');
	});
	
});

</script>

</body>
</html>